<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="/admin/res/style.css">
<link rel="stylesheet" type="text/css" href="/admin/res/index.css">
<script src="/admin/res/jquery.min.js"></script>
<script src="/admin/res/cookie.js"></script>
<script src="/admin/res/layindex.js"></script>
</head>
<body class="mainbody">

	<a href="add" class="btn btn-primary"><i class="fa fa-plus"></i>新增</a>
	<a href="taxis" class="btn btn-warning"><i
		class="fa fa-sort-amount-asc"></i>保存排序</a>
	<a href="del" class="btn btn-danger"><i class="fa fa-trash-o"></i>删
		除</a>

	<div calss="line20"></div>
	<form action="" method="POST">
		<input type="hidden" name="_method" value="DELETE" />
	</form>

	<table class="table table-striped table-hover" border="0"
		cellpadding="0" cellspacing="0" id="userTable">
		<thead>
			<tr>
				<th width="40">ID</th>
				<th width="100">所属栏目</th>
				<th>名称</th>
				<th width="150">排序</th>
				<th width="150">属性</th>
				<th width="80">浏览量</th>
				<th width="150">添加日期</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${requestScope.list }" var="model">
				<tr>
					<td>${model.id }</td>
					<td>${model.node.title }</td>
					<td>${model.title }<c:if test="${node.imgurl.length>1}">
							<a href=""><i class="fa fa-image-o"></i></a>
						</c:if> <c:if test="${node.linkurl.length>1}">
							<a target="_blank" href="${node.linkurl}"><i
								class="fa fa-link"></i></a>
						</c:if>
					</td>
					<td>${model.taxis }</td>
					<td></td>
					<td>${model.hit }</td>
					<td>${model.addtime }</td>
					<td><a href="add/${model.id }">编辑</a> <a class="del"
						href="del/${model.id }">删除</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>




</body>
</html>